package com.numberone.master.modules.oa.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.numberone.master.common.service.CrudService;
import com.numberone.master.modules.oa.dao.OperationDao;
import com.numberone.master.modules.oa.entity.Operation;
import com.numberone.master.modules.sys.dao.OfficeDao;
import com.numberone.master.modules.sys.dao.UserDao;


@Service
@Transactional(readOnly = true)
public class OperationService extends CrudService<OperationDao, Operation> {
	
	@Autowired
	private UserDao userDao;
	@Autowired
	private OfficeDao officeDao;
	
	@Transactional(readOnly = false)
	public void insert(Operation operation) {
		// TODO Auto-generated method stub
		dao.insert(operation);
	}
	
	public List<Operation> findList(String workOrderId) {
		List<Operation> operationList = dao.findList(workOrderId);
		return operationList;
	}
}
